package sandan.gyl.business.xsgl.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import sandan.gyl.base.dao.impl.BaseDaoImpl;
import sandan.gyl.business.xsgl.dao.XsddzhubDao;
import sandan.gyl.domain.business.xsgl.Xsddzhib;
import sandan.gyl.domain.business.xsgl.Xsddzhub;

@Repository("xsddzhubDao")
public class XsddzhubDaoImpl extends BaseDaoImpl<Xsddzhub> implements
		XsddzhubDao {
	public List<Xsddzhib> getXsddzhibByDDH(String ddh) {
		// TODO Auto-generated method stub
		return this.hibernateTemplate.find(
				"from Xsddzhib where xsddzhub.ddh=?", ddh);
	}

	public Xsddzhub getXsddzhubByDDH(String ddh) {
		// TODO Auto-generated method stub
		return (Xsddzhub) this.hibernateTemplate.find(
				"from Xsddzhub where ddh=?", ddh).get(0);
	}
}
